package b.g.c;

import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseIntArray;
import android.util.Xml;
import android.view.LayoutInflater;
import android.view.View;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.ConstraintLayout.LayoutParams;
import androidx.constraintlayout.widget.Constraints;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import com.huawei.hms.adapter.internal.AvailableCode;
import com.huawei.hms.api.ConnectionResult;
import com.huawei.updatesdk.service.otaupdate.UpdateStatusCode.DialogButton;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Objects;
import org.xmlpull.v1.XmlPullParserException;

/* compiled from: ConstraintSet */
public class c {
    public static final int[] d = new int[]{0, 4, 8};
    public static SparseIntArray e;
    public HashMap<String, a> a = new HashMap();
    public boolean b = true;
    public HashMap<Integer, a> c = new HashMap();

    /* compiled from: ConstraintSet */
    public static class a {
        public int a;
        public final d b = new d();
        public final c c = new c();
        public final b d = new b();
        public final e e = new e();
        public HashMap<String, a> f = new HashMap();

        public void a(LayoutParams layoutParams) {
            b bVar = this.d;
            layoutParams.d = bVar.h;
            layoutParams.e = bVar.i;
            layoutParams.f = bVar.j;
            layoutParams.g = bVar.k;
            layoutParams.h = bVar.l;
            layoutParams.i = bVar.m;
            layoutParams.j = bVar.n;
            layoutParams.k = bVar.o;
            layoutParams.l = bVar.p;
            layoutParams.p = bVar.q;
            layoutParams.q = bVar.r;
            layoutParams.r = bVar.s;
            layoutParams.s = bVar.t;
            layoutParams.leftMargin = bVar.D;
            layoutParams.rightMargin = bVar.E;
            layoutParams.topMargin = bVar.F;
            layoutParams.bottomMargin = bVar.G;
            layoutParams.x = bVar.O;
            layoutParams.y = bVar.N;
            layoutParams.u = bVar.K;
            layoutParams.w = bVar.M;
            layoutParams.z = bVar.u;
            layoutParams.A = bVar.v;
            layoutParams.m = bVar.x;
            layoutParams.n = bVar.y;
            bVar = this.d;
            layoutParams.o = bVar.z;
            layoutParams.B = bVar.w;
            layoutParams.P = bVar.A;
            layoutParams.Q = bVar.B;
            layoutParams.E = bVar.P;
            layoutParams.D = bVar.Q;
            layoutParams.G = bVar.S;
            layoutParams.F = bVar.R;
            layoutParams.S = bVar.h0;
            layoutParams.T = bVar.i0;
            layoutParams.H = bVar.T;
            layoutParams.I = bVar.U;
            layoutParams.L = bVar.V;
            layoutParams.M = bVar.W;
            layoutParams.J = bVar.X;
            layoutParams.K = bVar.Y;
            layoutParams.N = bVar.Z;
            layoutParams.O = bVar.a0;
            layoutParams.R = bVar.C;
            layoutParams.c = bVar.g;
            layoutParams.a = bVar.e;
            layoutParams.b = bVar.f;
            layoutParams.width = bVar.c;
            layoutParams.height = bVar.d;
            String str = bVar.g0;
            if (str != null) {
                layoutParams.U = str;
            }
            layoutParams.setMarginStart(this.d.I);
            layoutParams.setMarginEnd(this.d.H);
            layoutParams.a();
        }

        public final void b(int i, LayoutParams layoutParams) {
            this.a = i;
            b bVar = this.d;
            bVar.h = layoutParams.d;
            bVar.i = layoutParams.e;
            bVar.j = layoutParams.f;
            bVar.k = layoutParams.g;
            bVar.l = layoutParams.h;
            bVar.m = layoutParams.i;
            bVar.n = layoutParams.j;
            bVar.o = layoutParams.k;
            bVar.p = layoutParams.l;
            bVar.q = layoutParams.p;
            bVar.r = layoutParams.q;
            bVar.s = layoutParams.r;
            bVar.t = layoutParams.s;
            bVar.u = layoutParams.z;
            bVar.v = layoutParams.A;
            bVar.w = layoutParams.B;
            bVar.x = layoutParams.m;
            bVar.y = layoutParams.n;
            bVar.z = layoutParams.o;
            bVar.A = layoutParams.P;
            bVar.B = layoutParams.Q;
            bVar.C = layoutParams.R;
            bVar.g = layoutParams.c;
            bVar.e = layoutParams.a;
            bVar.f = layoutParams.b;
            bVar = this.d;
            bVar.c = layoutParams.width;
            bVar.d = layoutParams.height;
            bVar.D = layoutParams.leftMargin;
            bVar.E = layoutParams.rightMargin;
            bVar.F = layoutParams.topMargin;
            bVar.G = layoutParams.bottomMargin;
            bVar.P = layoutParams.E;
            bVar.Q = layoutParams.D;
            bVar.S = layoutParams.G;
            bVar.R = layoutParams.F;
            bVar.h0 = layoutParams.S;
            bVar.i0 = layoutParams.T;
            bVar.T = layoutParams.H;
            bVar.U = layoutParams.I;
            bVar.V = layoutParams.L;
            bVar.W = layoutParams.M;
            bVar.X = layoutParams.J;
            bVar.Y = layoutParams.K;
            bVar.Z = layoutParams.N;
            bVar.a0 = layoutParams.O;
            bVar.g0 = layoutParams.U;
            bVar.K = layoutParams.u;
            bVar.M = layoutParams.w;
            bVar.J = layoutParams.t;
            bVar.L = layoutParams.v;
            bVar = this.d;
            bVar.O = layoutParams.x;
            bVar.N = layoutParams.y;
            bVar.H = layoutParams.getMarginEnd();
            this.d.I = layoutParams.getMarginStart();
        }

        public final void c(int i, Constraints.LayoutParams layoutParams) {
            b(i, layoutParams);
            this.b.d = layoutParams.m0;
            e eVar = this.e;
            eVar.b = layoutParams.p0;
            eVar.c = layoutParams.q0;
            eVar.d = layoutParams.r0;
            eVar.e = layoutParams.s0;
            eVar.f = layoutParams.t0;
            eVar.g = layoutParams.u0;
            eVar.h = layoutParams.v0;
            eVar.i = layoutParams.w0;
            eVar.j = layoutParams.x0;
            eVar.k = layoutParams.y0;
            eVar.m = layoutParams.o0;
            eVar.l = layoutParams.n0;
        }

        public Object clone() throws CloneNotSupportedException {
            a aVar = new a();
            b bVar = aVar.d;
            b bVar2 = this.d;
            Objects.requireNonNull(bVar);
            bVar.a = bVar2.a;
            bVar.c = bVar2.c;
            bVar.b = bVar2.b;
            bVar.d = bVar2.d;
            bVar.e = bVar2.e;
            bVar.f = bVar2.f;
            bVar.g = bVar2.g;
            bVar.h = bVar2.h;
            bVar.i = bVar2.i;
            bVar.j = bVar2.j;
            bVar.k = bVar2.k;
            bVar.l = bVar2.l;
            bVar.m = bVar2.m;
            bVar.n = bVar2.n;
            bVar.o = bVar2.o;
            bVar.p = bVar2.p;
            bVar.q = bVar2.q;
            bVar.r = bVar2.r;
            bVar.s = bVar2.s;
            bVar.t = bVar2.t;
            bVar.u = bVar2.u;
            bVar.v = bVar2.v;
            bVar.w = bVar2.w;
            bVar.x = bVar2.x;
            bVar.y = bVar2.y;
            bVar.z = bVar2.z;
            bVar.A = bVar2.A;
            bVar.B = bVar2.B;
            bVar.C = bVar2.C;
            bVar.D = bVar2.D;
            bVar.E = bVar2.E;
            bVar.F = bVar2.F;
            bVar.G = bVar2.G;
            bVar.H = bVar2.H;
            bVar.I = bVar2.I;
            bVar.J = bVar2.J;
            bVar.K = bVar2.K;
            bVar.L = bVar2.L;
            bVar.M = bVar2.M;
            bVar.N = bVar2.N;
            bVar.O = bVar2.O;
            bVar.P = bVar2.P;
            bVar.Q = bVar2.Q;
            bVar.R = bVar2.R;
            bVar.S = bVar2.S;
            bVar.T = bVar2.T;
            bVar.U = bVar2.U;
            bVar.V = bVar2.V;
            bVar.W = bVar2.W;
            bVar.X = bVar2.X;
            bVar.Y = bVar2.Y;
            bVar.Z = bVar2.Z;
            bVar.a0 = bVar2.a0;
            bVar.b0 = bVar2.b0;
            bVar.c0 = bVar2.c0;
            bVar.d0 = bVar2.d0;
            bVar.g0 = bVar2.g0;
            int[] iArr = bVar2.e0;
            if (iArr != null) {
                bVar.e0 = Arrays.copyOf(iArr, iArr.length);
            } else {
                bVar.e0 = null;
            }
            bVar.f0 = bVar2.f0;
            bVar.h0 = bVar2.h0;
            bVar.i0 = bVar2.i0;
            bVar.j0 = bVar2.j0;
            c cVar = aVar.c;
            c cVar2 = this.c;
            Objects.requireNonNull(cVar);
            cVar.a = cVar2.a;
            cVar.b = cVar2.b;
            cVar.c = cVar2.c;
            cVar.d = cVar2.d;
            cVar.e = cVar2.e;
            cVar.g = cVar2.g;
            cVar.f = cVar2.f;
            d dVar = aVar.b;
            d dVar2 = this.b;
            Objects.requireNonNull(dVar);
            dVar.a = dVar2.a;
            dVar.b = dVar2.b;
            dVar.d = dVar2.d;
            dVar.e = dVar2.e;
            dVar.c = dVar2.c;
            e eVar = aVar.e;
            e eVar2 = this.e;
            Objects.requireNonNull(eVar);
            eVar.a = eVar2.a;
            eVar.b = eVar2.b;
            eVar.c = eVar2.c;
            eVar.d = eVar2.d;
            eVar.e = eVar2.e;
            eVar.f = eVar2.f;
            eVar.g = eVar2.g;
            eVar.h = eVar2.h;
            eVar.i = eVar2.i;
            eVar.j = eVar2.j;
            eVar.k = eVar2.k;
            eVar.l = eVar2.l;
            eVar.m = eVar2.m;
            aVar.a = this.a;
            return aVar;
        }
    }

    /* compiled from: ConstraintSet */
    public static class b {
        public static SparseIntArray k0;
        public int A = -1;
        public int B = -1;
        public int C = -1;
        public int D = -1;
        public int E = -1;
        public int F = -1;
        public int G = -1;
        public int H = -1;
        public int I = -1;
        public int J = -1;
        public int K = -1;
        public int L = -1;
        public int M = -1;
        public int N = -1;
        public int O = -1;
        public float P = -1.0f;
        public float Q = -1.0f;
        public int R = 0;
        public int S = 0;
        public int T = 0;
        public int U = 0;
        public int V = -1;
        public int W = -1;
        public int X = -1;
        public int Y = -1;
        public float Z = 1.0f;
        public boolean a = false;
        public float a0 = 1.0f;
        public boolean b = false;
        public int b0 = -1;
        public int c;
        public int c0 = 0;
        public int d;
        public int d0 = -1;
        public int e = -1;
        public int[] e0;
        public int f = -1;
        public String f0;
        public float g = -1.0f;
        public String g0;
        public int h = -1;
        public boolean h0 = false;
        public int i = -1;
        public boolean i0 = false;
        public int j = -1;
        public boolean j0 = true;
        public int k = -1;
        public int l = -1;
        public int m = -1;
        public int n = -1;
        public int o = -1;
        public int p = -1;
        public int q = -1;
        public int r = -1;
        public int s = -1;
        public int t = -1;
        public float u = 0.5f;
        public float v = 0.5f;
        public String w = null;
        public int x = -1;
        public int y = 0;
        public float z = 0.0f;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            k0 = sparseIntArray;
            sparseIntArray.append(39, 24);
            k0.append(40, 25);
            k0.append(42, 28);
            k0.append(43, 29);
            k0.append(48, 35);
            k0.append(47, 34);
            k0.append(21, 4);
            k0.append(20, 3);
            k0.append(18, 1);
            k0.append(56, 6);
            k0.append(57, 7);
            k0.append(28, 17);
            k0.append(29, 18);
            k0.append(30, 19);
            k0.append(0, 26);
            k0.append(44, 31);
            k0.append(45, 32);
            k0.append(27, 10);
            k0.append(26, 9);
            k0.append(60, 13);
            k0.append(63, 16);
            k0.append(61, 14);
            k0.append(58, 11);
            k0.append(62, 15);
            k0.append(59, 12);
            k0.append(51, 38);
            k0.append(37, 37);
            k0.append(36, 39);
            k0.append(50, 40);
            k0.append(35, 20);
            k0.append(49, 36);
            k0.append(25, 5);
            k0.append(38, 76);
            k0.append(46, 76);
            k0.append(41, 76);
            k0.append(19, 76);
            k0.append(17, 76);
            k0.append(3, 23);
            k0.append(5, 27);
            k0.append(7, 30);
            k0.append(8, 8);
            k0.append(4, 33);
            k0.append(6, 2);
            k0.append(1, 22);
            k0.append(2, 21);
            k0.append(22, 61);
            k0.append(24, 62);
            k0.append(23, 63);
            k0.append(55, 69);
            k0.append(34, 70);
            k0.append(12, 71);
            k0.append(10, 72);
            k0.append(11, 73);
            k0.append(13, 74);
            k0.append(9, 75);
        }

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, f.e);
            this.b = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                int i2 = k0.get(index);
                if (i2 == 80) {
                    this.h0 = obtainStyledAttributes.getBoolean(index, this.h0);
                } else if (i2 != 81) {
                    int[] iArr;
                    switch (i2) {
                        case 1:
                            i2 = this.p;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.p = i2;
                            break;
                        case 2:
                            this.G = obtainStyledAttributes.getDimensionPixelSize(index, this.G);
                            break;
                        case 3:
                            i2 = this.o;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.o = i2;
                            break;
                        case 4:
                            i2 = this.n;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.n = i2;
                            break;
                        case 5:
                            this.w = obtainStyledAttributes.getString(index);
                            break;
                        case 6:
                            this.A = obtainStyledAttributes.getDimensionPixelOffset(index, this.A);
                            break;
                        case 7:
                            this.B = obtainStyledAttributes.getDimensionPixelOffset(index, this.B);
                            break;
                        case 8:
                            this.H = obtainStyledAttributes.getDimensionPixelSize(index, this.H);
                            break;
                        case 9:
                            i2 = this.t;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.t = i2;
                            break;
                        case 10:
                            i2 = this.s;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.s = i2;
                            break;
                        case 11:
                            this.M = obtainStyledAttributes.getDimensionPixelSize(index, this.M);
                            break;
                        case 12:
                            this.N = obtainStyledAttributes.getDimensionPixelSize(index, this.N);
                            break;
                        case 13:
                            this.J = obtainStyledAttributes.getDimensionPixelSize(index, this.J);
                            break;
                        case 14:
                            this.L = obtainStyledAttributes.getDimensionPixelSize(index, this.L);
                            break;
                        case 15:
                            this.O = obtainStyledAttributes.getDimensionPixelSize(index, this.O);
                            break;
                        case 16:
                            this.K = obtainStyledAttributes.getDimensionPixelSize(index, this.K);
                            break;
                        case 17:
                            this.e = obtainStyledAttributes.getDimensionPixelOffset(index, this.e);
                            break;
                        case 18:
                            this.f = obtainStyledAttributes.getDimensionPixelOffset(index, this.f);
                            break;
                        case ConnectionResult.SERVICE_MISSING_PERMISSION /*19*/:
                            this.g = obtainStyledAttributes.getFloat(index, this.g);
                            break;
                        case ModuleDescriptor.MODULE_VERSION /*20*/:
                            this.u = obtainStyledAttributes.getFloat(index, this.u);
                            break;
                        case 21:
                            this.d = obtainStyledAttributes.getLayoutDimension(index, this.d);
                            break;
                        case 22:
                            this.c = obtainStyledAttributes.getLayoutDimension(index, this.c);
                            break;
                        case 23:
                            this.D = obtainStyledAttributes.getDimensionPixelSize(index, this.D);
                            break;
                        case 24:
                            i2 = this.h;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.h = i2;
                            break;
                        case 25:
                            i2 = this.i;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.i = i2;
                            break;
                        case 26:
                            this.C = obtainStyledAttributes.getInt(index, this.C);
                            break;
                        case AvailableCode.USER_IGNORE_PREVIOUS_POPUP /*27*/:
                            this.E = obtainStyledAttributes.getDimensionPixelSize(index, this.E);
                            break;
                        case 28:
                            i2 = this.j;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.j = i2;
                            break;
                        case 29:
                            i2 = this.k;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.k = i2;
                            break;
                        case 30:
                            this.I = obtainStyledAttributes.getDimensionPixelSize(index, this.I);
                            break;
                        case 31:
                            i2 = this.q;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.q = i2;
                            break;
                        case 32:
                            i2 = this.r;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.r = i2;
                            break;
                        case 33:
                            this.F = obtainStyledAttributes.getDimensionPixelSize(index, this.F);
                            break;
                        case 34:
                            i2 = this.m;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.m = i2;
                            break;
                        case 35:
                            i2 = this.l;
                            iArr = c.d;
                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                            if (i2 == -1) {
                                i2 = obtainStyledAttributes.getInt(index, -1);
                            }
                            this.l = i2;
                            break;
                        case 36:
                            this.v = obtainStyledAttributes.getFloat(index, this.v);
                            break;
                        case 37:
                            this.Q = obtainStyledAttributes.getFloat(index, this.Q);
                            break;
                        case 38:
                            this.P = obtainStyledAttributes.getFloat(index, this.P);
                            break;
                        case 39:
                            this.R = obtainStyledAttributes.getInt(index, this.R);
                            break;
                        case 40:
                            this.S = obtainStyledAttributes.getInt(index, this.S);
                            break;
                        default:
                            switch (i2) {
                                case 54:
                                    this.T = obtainStyledAttributes.getInt(index, this.T);
                                    break;
                                case 55:
                                    this.U = obtainStyledAttributes.getInt(index, this.U);
                                    break;
                                case 56:
                                    this.V = obtainStyledAttributes.getDimensionPixelSize(index, this.V);
                                    break;
                                case 57:
                                    this.W = obtainStyledAttributes.getDimensionPixelSize(index, this.W);
                                    break;
                                case 58:
                                    this.X = obtainStyledAttributes.getDimensionPixelSize(index, this.X);
                                    break;
                                case 59:
                                    this.Y = obtainStyledAttributes.getDimensionPixelSize(index, this.Y);
                                    break;
                                default:
                                    switch (i2) {
                                        case 61:
                                            i2 = this.x;
                                            iArr = c.d;
                                            i2 = obtainStyledAttributes.getResourceId(index, i2);
                                            if (i2 == -1) {
                                                i2 = obtainStyledAttributes.getInt(index, -1);
                                            }
                                            this.x = i2;
                                            break;
                                        case 62:
                                            this.y = obtainStyledAttributes.getDimensionPixelSize(index, this.y);
                                            break;
                                        case 63:
                                            this.z = obtainStyledAttributes.getFloat(index, this.z);
                                            break;
                                        default:
                                            String str = "   ";
                                            String str2 = "ConstraintSet";
                                            StringBuilder g;
                                            switch (i2) {
                                                case 69:
                                                    this.Z = obtainStyledAttributes.getFloat(index, 1.0f);
                                                    break;
                                                case 70:
                                                    this.a0 = obtainStyledAttributes.getFloat(index, 1.0f);
                                                    break;
                                                case 71:
                                                    Log.e(str2, "CURRENTLY UNSUPPORTED");
                                                    break;
                                                case 72:
                                                    this.b0 = obtainStyledAttributes.getInt(index, this.b0);
                                                    break;
                                                case 73:
                                                    this.c0 = obtainStyledAttributes.getDimensionPixelSize(index, this.c0);
                                                    break;
                                                case 74:
                                                    this.f0 = obtainStyledAttributes.getString(index);
                                                    break;
                                                case 75:
                                                    this.j0 = obtainStyledAttributes.getBoolean(index, this.j0);
                                                    break;
                                                case 76:
                                                    g = c.b.a.a.a.g("unused attribute 0x");
                                                    g.append(Integer.toHexString(index));
                                                    g.append(str);
                                                    g.append(k0.get(index));
                                                    Log.w(str2, g.toString());
                                                    break;
                                                case 77:
                                                    this.g0 = obtainStyledAttributes.getString(index);
                                                    break;
                                                default:
                                                    g = c.b.a.a.a.g("Unknown attribute 0x");
                                                    g.append(Integer.toHexString(index));
                                                    g.append(str);
                                                    g.append(k0.get(index));
                                                    Log.w(str2, g.toString());
                                                    break;
                                            }
                                    }
                            }
                    }
                } else {
                    this.i0 = obtainStyledAttributes.getBoolean(index, this.i0);
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* compiled from: ConstraintSet */
    public static class c {
        public static SparseIntArray h;
        public boolean a = false;
        public int b = -1;
        public String c = null;
        public int d = -1;
        public int e = 0;
        public float f = Float.NaN;
        public float g = Float.NaN;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            h = sparseIntArray;
            sparseIntArray.append(2, 1);
            h.append(4, 2);
            h.append(5, 3);
            h.append(1, 4);
            h.append(0, 5);
            h.append(3, 6);
        }

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, f.f);
            this.a = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                switch (h.get(index)) {
                    case 1:
                        this.g = obtainStyledAttributes.getFloat(index, this.g);
                        break;
                    case 2:
                        this.d = obtainStyledAttributes.getInt(index, this.d);
                        break;
                    case 3:
                        if (obtainStyledAttributes.peekValue(index).type != 3) {
                            this.c = b.g.a.a.a.a[obtainStyledAttributes.getInteger(index, 0)];
                            break;
                        } else {
                            this.c = obtainStyledAttributes.getString(index);
                            break;
                        }
                    case 4:
                        this.e = obtainStyledAttributes.getInt(index, 0);
                        break;
                    case 5:
                        int i2 = this.b;
                        int[] iArr = c.d;
                        i2 = obtainStyledAttributes.getResourceId(index, i2);
                        if (i2 == -1) {
                            i2 = obtainStyledAttributes.getInt(index, -1);
                        }
                        this.b = i2;
                        break;
                    case 6:
                        this.f = obtainStyledAttributes.getFloat(index, this.f);
                        break;
                    default:
                        break;
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* compiled from: ConstraintSet */
    public static class d {
        public boolean a = false;
        public int b = 0;
        public int c = 0;
        public float d = 1.0f;
        public float e = Float.NaN;

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, f.g);
            this.a = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                if (index == 1) {
                    this.d = obtainStyledAttributes.getFloat(index, this.d);
                } else if (index == 0) {
                    index = obtainStyledAttributes.getInt(index, this.b);
                    this.b = index;
                    int[] iArr = c.d;
                    this.b = c.d[index];
                } else if (index == 4) {
                    this.c = obtainStyledAttributes.getInt(index, this.c);
                } else if (index == 3) {
                    this.e = obtainStyledAttributes.getFloat(index, this.e);
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    /* compiled from: ConstraintSet */
    public static class e {
        public static SparseIntArray n;
        public boolean a = false;
        public float b = 0.0f;
        public float c = 0.0f;
        public float d = 0.0f;
        public float e = 1.0f;
        public float f = 1.0f;
        public float g = Float.NaN;
        public float h = Float.NaN;
        public float i = 0.0f;
        public float j = 0.0f;
        public float k = 0.0f;
        public boolean l = false;
        public float m = 0.0f;

        static {
            SparseIntArray sparseIntArray = new SparseIntArray();
            n = sparseIntArray;
            sparseIntArray.append(6, 1);
            n.append(7, 2);
            n.append(8, 3);
            n.append(4, 4);
            n.append(5, 5);
            n.append(0, 6);
            n.append(1, 7);
            n.append(2, 8);
            n.append(3, 9);
            n.append(9, 10);
            n.append(10, 11);
        }

        public void a(Context context, AttributeSet attributeSet) {
            TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, f.i);
            this.a = true;
            int indexCount = obtainStyledAttributes.getIndexCount();
            for (int i = 0; i < indexCount; i++) {
                int index = obtainStyledAttributes.getIndex(i);
                switch (n.get(index)) {
                    case 1:
                        this.b = obtainStyledAttributes.getFloat(index, this.b);
                        break;
                    case 2:
                        this.c = obtainStyledAttributes.getFloat(index, this.c);
                        break;
                    case 3:
                        this.d = obtainStyledAttributes.getFloat(index, this.d);
                        break;
                    case 4:
                        this.e = obtainStyledAttributes.getFloat(index, this.e);
                        break;
                    case 5:
                        this.f = obtainStyledAttributes.getFloat(index, this.f);
                        break;
                    case 6:
                        this.g = obtainStyledAttributes.getDimension(index, this.g);
                        break;
                    case 7:
                        this.h = obtainStyledAttributes.getDimension(index, this.h);
                        break;
                    case 8:
                        this.i = obtainStyledAttributes.getDimension(index, this.i);
                        break;
                    case 9:
                        this.j = obtainStyledAttributes.getDimension(index, this.j);
                        break;
                    case 10:
                        this.k = obtainStyledAttributes.getDimension(index, this.k);
                        break;
                    case 11:
                        this.l = true;
                        this.m = obtainStyledAttributes.getDimension(index, this.m);
                        break;
                    default:
                        break;
                }
            }
            obtainStyledAttributes.recycle();
        }
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        e = sparseIntArray;
        sparseIntArray.append(77, 25);
        e.append(78, 26);
        e.append(80, 29);
        e.append(81, 30);
        e.append(87, 36);
        e.append(86, 35);
        e.append(59, 4);
        e.append(58, 3);
        e.append(56, 1);
        e.append(95, 6);
        e.append(96, 7);
        e.append(66, 17);
        e.append(67, 18);
        e.append(68, 19);
        e.append(0, 27);
        e.append(82, 32);
        e.append(83, 33);
        e.append(65, 10);
        e.append(64, 9);
        e.append(99, 13);
        e.append(102, 16);
        e.append(100, 14);
        e.append(97, 11);
        e.append(DialogButton.CONFIRM, 15);
        e.append(98, 12);
        e.append(90, 40);
        e.append(75, 39);
        e.append(74, 41);
        e.append(89, 42);
        e.append(73, 20);
        e.append(88, 37);
        e.append(63, 5);
        e.append(76, 82);
        e.append(85, 82);
        e.append(79, 82);
        e.append(57, 82);
        e.append(55, 82);
        e.append(5, 24);
        e.append(7, 28);
        e.append(23, 31);
        e.append(24, 8);
        e.append(6, 34);
        e.append(8, 2);
        e.append(3, 23);
        e.append(4, 21);
        e.append(2, 22);
        e.append(13, 43);
        e.append(26, 44);
        e.append(21, 45);
        e.append(22, 46);
        e.append(20, 60);
        e.append(18, 47);
        e.append(19, 48);
        e.append(14, 49);
        e.append(15, 50);
        e.append(16, 51);
        e.append(17, 52);
        e.append(25, 53);
        e.append(91, 54);
        e.append(69, 55);
        e.append(92, 56);
        e.append(70, 57);
        e.append(93, 58);
        e.append(71, 59);
        e.append(60, 61);
        e.append(62, 62);
        e.append(61, 63);
        e.append(27, 64);
        e.append(107, 65);
        e.append(34, 66);
        e.append(108, 67);
        e.append(104, 79);
        e.append(1, 38);
        e.append(103, 68);
        e.append(94, 69);
        e.append(72, 70);
        e.append(31, 71);
        e.append(29, 72);
        e.append(30, 73);
        e.append(32, 74);
        e.append(28, 75);
        e.append(105, 76);
        e.append(84, 77);
        e.append(109, 78);
        e.append(54, 80);
        e.append(53, 81);
    }

    public void a(Context context, int i) {
        NoSuchMethodException e;
        IllegalAccessException e2;
        InvocationTargetException e3;
        c cVar = this;
        ConstraintLayout constraintLayout = (ConstraintLayout) LayoutInflater.from(context).inflate(i, null);
        int childCount = constraintLayout.getChildCount();
        cVar.c.clear();
        int i2 = 0;
        while (i2 < childCount) {
            View childAt = constraintLayout.getChildAt(i2);
            LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();
            int id = childAt.getId();
            if (cVar.b && id == -1) {
                throw new RuntimeException("All children of ConstraintLayout must have ids to use ConstraintSet");
            }
            if (!cVar.c.containsKey(Integer.valueOf(id))) {
                cVar.c.put(Integer.valueOf(id), new a());
            }
            a aVar = (a) cVar.c.get(Integer.valueOf(id));
            HashMap hashMap = cVar.a;
            HashMap hashMap2 = new HashMap();
            Class cls = childAt.getClass();
            for (String str : hashMap.keySet()) {
                a aVar2 = (a) hashMap.get(str);
                try {
                    if (str.equals("BackgroundColor")) {
                        hashMap2.put(str, new a(aVar2, Integer.valueOf(((ColorDrawable) childAt.getBackground()).getColor())));
                    } else {
                        StringBuilder stringBuilder = new StringBuilder();
                        stringBuilder.append("getMap");
                        stringBuilder.append(str);
                        try {
                            hashMap2.put(str, new a(aVar2, cls.getMethod(stringBuilder.toString(), new Class[0]).invoke(childAt, new Object[0])));
                        } catch (NoSuchMethodException e4) {
                            e = e4;
                        } catch (IllegalAccessException e5) {
                            e2 = e5;
                            e2.printStackTrace();
                        } catch (InvocationTargetException e6) {
                            e3 = e6;
                            e3.printStackTrace();
                        }
                    }
                } catch (NoSuchMethodException e7) {
                    e = e7;
                    e.printStackTrace();
                } catch (IllegalAccessException e8) {
                    e2 = e8;
                    e2.printStackTrace();
                } catch (InvocationTargetException e9) {
                    e3 = e9;
                    e3.printStackTrace();
                }
            }
            aVar.f = hashMap2;
            aVar.b(id, layoutParams);
            aVar.b.b = childAt.getVisibility();
            aVar.b.d = childAt.getAlpha();
            aVar.e.b = childAt.getRotation();
            aVar.e.c = childAt.getRotationX();
            aVar.e.d = childAt.getRotationY();
            aVar.e.e = childAt.getScaleX();
            aVar.e.f = childAt.getScaleY();
            float pivotX = childAt.getPivotX();
            float pivotY = childAt.getPivotY();
            if (!(((double) pivotX) == 0.0d && ((double) pivotY) == 0.0d)) {
                e eVar = aVar.e;
                eVar.g = pivotX;
                eVar.h = pivotY;
            }
            aVar.e.i = childAt.getTranslationX();
            aVar.e.j = childAt.getTranslationY();
            aVar.e.k = childAt.getTranslationZ();
            e eVar2 = aVar.e;
            if (eVar2.l) {
                eVar2.m = childAt.getElevation();
            }
            if (childAt instanceof Barrier) {
                Barrier barrier = (Barrier) childAt;
                b bVar = aVar.d;
                bVar.j0 = barrier.j.o0;
                bVar.e0 = barrier.getReferencedIds();
                aVar.d.b0 = barrier.getType();
                aVar.d.c0 = barrier.getMargin();
            }
            i2++;
            cVar = this;
        }
    }

    public final int[] b(View view, String str) {
        String[] split = str.split(",");
        Context context = view.getContext();
        int[] iArr = new int[split.length];
        int i = 0;
        int i2 = 0;
        while (i < split.length) {
            int i3;
            String trim = split[i].trim();
            try {
                i3 = e.class.getField(trim).getInt(null);
            } catch (Exception unused) {
                i3 = 0;
            }
            if (i3 == 0) {
                i3 = context.getResources().getIdentifier(trim, "id", context.getPackageName());
            }
            if (i3 == 0 && view.isInEditMode() && (view.getParent() instanceof ConstraintLayout)) {
                Object c = ((ConstraintLayout) view.getParent()).c(0, trim);
                if (c != null && (c instanceof Integer)) {
                    i3 = ((Integer) c).intValue();
                }
            }
            int i4 = i2 + 1;
            iArr[i2] = i3;
            i++;
            i2 = i4;
        }
        return i2 != split.length ? Arrays.copyOf(iArr, i2) : iArr;
    }

    public final a c(Context context, AttributeSet attributeSet) {
        a aVar = new a();
        TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, f.a);
        int indexCount = obtainStyledAttributes.getIndexCount();
        for (int i = 0; i < indexCount; i++) {
            int index = obtainStyledAttributes.getIndex(i);
            if (!(index == 1 || 23 == index || 24 == index)) {
                aVar.c.a = true;
                aVar.d.b = true;
                aVar.b.a = true;
                aVar.e.a = true;
            }
            String str = "   ";
            String str2 = "ConstraintSet";
            b bVar;
            int resourceId;
            d dVar;
            e eVar;
            c cVar;
            StringBuilder g;
            switch (e.get(index)) {
                case 1:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.p);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.p = resourceId;
                    break;
                case 2:
                    bVar = aVar.d;
                    bVar.G = obtainStyledAttributes.getDimensionPixelSize(index, bVar.G);
                    break;
                case 3:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.o);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.o = resourceId;
                    break;
                case 4:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.n);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.n = resourceId;
                    break;
                case 5:
                    aVar.d.w = obtainStyledAttributes.getString(index);
                    break;
                case 6:
                    bVar = aVar.d;
                    bVar.A = obtainStyledAttributes.getDimensionPixelOffset(index, bVar.A);
                    break;
                case 7:
                    bVar = aVar.d;
                    bVar.B = obtainStyledAttributes.getDimensionPixelOffset(index, bVar.B);
                    break;
                case 8:
                    bVar = aVar.d;
                    bVar.H = obtainStyledAttributes.getDimensionPixelSize(index, bVar.H);
                    break;
                case 9:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.t);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.t = resourceId;
                    break;
                case 10:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.s);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.s = resourceId;
                    break;
                case 11:
                    bVar = aVar.d;
                    bVar.M = obtainStyledAttributes.getDimensionPixelSize(index, bVar.M);
                    break;
                case 12:
                    bVar = aVar.d;
                    bVar.N = obtainStyledAttributes.getDimensionPixelSize(index, bVar.N);
                    break;
                case 13:
                    bVar = aVar.d;
                    bVar.J = obtainStyledAttributes.getDimensionPixelSize(index, bVar.J);
                    break;
                case 14:
                    bVar = aVar.d;
                    bVar.L = obtainStyledAttributes.getDimensionPixelSize(index, bVar.L);
                    break;
                case 15:
                    bVar = aVar.d;
                    bVar.O = obtainStyledAttributes.getDimensionPixelSize(index, bVar.O);
                    break;
                case 16:
                    bVar = aVar.d;
                    bVar.K = obtainStyledAttributes.getDimensionPixelSize(index, bVar.K);
                    break;
                case 17:
                    bVar = aVar.d;
                    bVar.e = obtainStyledAttributes.getDimensionPixelOffset(index, bVar.e);
                    break;
                case 18:
                    bVar = aVar.d;
                    bVar.f = obtainStyledAttributes.getDimensionPixelOffset(index, bVar.f);
                    break;
                case ConnectionResult.SERVICE_MISSING_PERMISSION /*19*/:
                    bVar = aVar.d;
                    bVar.g = obtainStyledAttributes.getFloat(index, bVar.g);
                    break;
                case ModuleDescriptor.MODULE_VERSION /*20*/:
                    bVar = aVar.d;
                    bVar.u = obtainStyledAttributes.getFloat(index, bVar.u);
                    break;
                case 21:
                    bVar = aVar.d;
                    bVar.d = obtainStyledAttributes.getLayoutDimension(index, bVar.d);
                    break;
                case 22:
                    dVar = aVar.b;
                    dVar.b = obtainStyledAttributes.getInt(index, dVar.b);
                    d dVar2 = aVar.b;
                    dVar2.b = d[dVar2.b];
                    break;
                case 23:
                    bVar = aVar.d;
                    bVar.c = obtainStyledAttributes.getLayoutDimension(index, bVar.c);
                    break;
                case 24:
                    bVar = aVar.d;
                    bVar.D = obtainStyledAttributes.getDimensionPixelSize(index, bVar.D);
                    break;
                case 25:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.h);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.h = resourceId;
                    break;
                case 26:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.i);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.i = resourceId;
                    break;
                case AvailableCode.USER_IGNORE_PREVIOUS_POPUP /*27*/:
                    bVar = aVar.d;
                    bVar.C = obtainStyledAttributes.getInt(index, bVar.C);
                    break;
                case 28:
                    bVar = aVar.d;
                    bVar.E = obtainStyledAttributes.getDimensionPixelSize(index, bVar.E);
                    break;
                case 29:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.j);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.j = resourceId;
                    break;
                case 30:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.k);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.k = resourceId;
                    break;
                case 31:
                    bVar = aVar.d;
                    bVar.I = obtainStyledAttributes.getDimensionPixelSize(index, bVar.I);
                    break;
                case 32:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.q);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.q = resourceId;
                    break;
                case 33:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.r);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.r = resourceId;
                    break;
                case 34:
                    bVar = aVar.d;
                    bVar.F = obtainStyledAttributes.getDimensionPixelSize(index, bVar.F);
                    break;
                case 35:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.m);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.m = resourceId;
                    break;
                case 36:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.l);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.l = resourceId;
                    break;
                case 37:
                    bVar = aVar.d;
                    bVar.v = obtainStyledAttributes.getFloat(index, bVar.v);
                    break;
                case 38:
                    aVar.a = obtainStyledAttributes.getResourceId(index, aVar.a);
                    break;
                case 39:
                    bVar = aVar.d;
                    bVar.Q = obtainStyledAttributes.getFloat(index, bVar.Q);
                    break;
                case 40:
                    bVar = aVar.d;
                    bVar.P = obtainStyledAttributes.getFloat(index, bVar.P);
                    break;
                case 41:
                    bVar = aVar.d;
                    bVar.R = obtainStyledAttributes.getInt(index, bVar.R);
                    break;
                case 42:
                    bVar = aVar.d;
                    bVar.S = obtainStyledAttributes.getInt(index, bVar.S);
                    break;
                case 43:
                    dVar = aVar.b;
                    dVar.d = obtainStyledAttributes.getFloat(index, dVar.d);
                    break;
                case 44:
                    e eVar2 = aVar.e;
                    eVar2.l = true;
                    eVar2.m = obtainStyledAttributes.getDimension(index, eVar2.m);
                    break;
                case 45:
                    eVar = aVar.e;
                    eVar.c = obtainStyledAttributes.getFloat(index, eVar.c);
                    break;
                case 46:
                    eVar = aVar.e;
                    eVar.d = obtainStyledAttributes.getFloat(index, eVar.d);
                    break;
                case 47:
                    eVar = aVar.e;
                    eVar.e = obtainStyledAttributes.getFloat(index, eVar.e);
                    break;
                case 48:
                    eVar = aVar.e;
                    eVar.f = obtainStyledAttributes.getFloat(index, eVar.f);
                    break;
                case 49:
                    eVar = aVar.e;
                    eVar.g = obtainStyledAttributes.getDimension(index, eVar.g);
                    break;
                case 50:
                    eVar = aVar.e;
                    eVar.h = obtainStyledAttributes.getDimension(index, eVar.h);
                    break;
                case 51:
                    eVar = aVar.e;
                    eVar.i = obtainStyledAttributes.getDimension(index, eVar.i);
                    break;
                case 52:
                    eVar = aVar.e;
                    eVar.j = obtainStyledAttributes.getDimension(index, eVar.j);
                    break;
                case 53:
                    eVar = aVar.e;
                    eVar.k = obtainStyledAttributes.getDimension(index, eVar.k);
                    break;
                case 54:
                    bVar = aVar.d;
                    bVar.T = obtainStyledAttributes.getInt(index, bVar.T);
                    break;
                case 55:
                    bVar = aVar.d;
                    bVar.U = obtainStyledAttributes.getInt(index, bVar.U);
                    break;
                case 56:
                    bVar = aVar.d;
                    bVar.V = obtainStyledAttributes.getDimensionPixelSize(index, bVar.V);
                    break;
                case 57:
                    bVar = aVar.d;
                    bVar.W = obtainStyledAttributes.getDimensionPixelSize(index, bVar.W);
                    break;
                case 58:
                    bVar = aVar.d;
                    bVar.X = obtainStyledAttributes.getDimensionPixelSize(index, bVar.X);
                    break;
                case 59:
                    bVar = aVar.d;
                    bVar.Y = obtainStyledAttributes.getDimensionPixelSize(index, bVar.Y);
                    break;
                case 60:
                    eVar = aVar.e;
                    eVar.b = obtainStyledAttributes.getFloat(index, eVar.b);
                    break;
                case 61:
                    bVar = aVar.d;
                    resourceId = obtainStyledAttributes.getResourceId(index, bVar.x);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    bVar.x = resourceId;
                    break;
                case 62:
                    bVar = aVar.d;
                    bVar.y = obtainStyledAttributes.getDimensionPixelSize(index, bVar.y);
                    break;
                case 63:
                    bVar = aVar.d;
                    bVar.z = obtainStyledAttributes.getFloat(index, bVar.z);
                    break;
                case 64:
                    cVar = aVar.c;
                    resourceId = obtainStyledAttributes.getResourceId(index, cVar.b);
                    if (resourceId == -1) {
                        resourceId = obtainStyledAttributes.getInt(index, -1);
                    }
                    cVar.b = resourceId;
                    break;
                case 65:
                    if (obtainStyledAttributes.peekValue(index).type != 3) {
                        aVar.c.c = b.g.a.a.a.a[obtainStyledAttributes.getInteger(index, 0)];
                        break;
                    }
                    aVar.c.c = obtainStyledAttributes.getString(index);
                    break;
                case 66:
                    aVar.c.e = obtainStyledAttributes.getInt(index, 0);
                    break;
                case 67:
                    cVar = aVar.c;
                    cVar.g = obtainStyledAttributes.getFloat(index, cVar.g);
                    break;
                case 68:
                    dVar = aVar.b;
                    dVar.e = obtainStyledAttributes.getFloat(index, dVar.e);
                    break;
                case 69:
                    aVar.d.Z = obtainStyledAttributes.getFloat(index, 1.0f);
                    break;
                case 70:
                    aVar.d.a0 = obtainStyledAttributes.getFloat(index, 1.0f);
                    break;
                case 71:
                    Log.e(str2, "CURRENTLY UNSUPPORTED");
                    break;
                case 72:
                    bVar = aVar.d;
                    bVar.b0 = obtainStyledAttributes.getInt(index, bVar.b0);
                    break;
                case 73:
                    bVar = aVar.d;
                    bVar.c0 = obtainStyledAttributes.getDimensionPixelSize(index, bVar.c0);
                    break;
                case 74:
                    aVar.d.f0 = obtainStyledAttributes.getString(index);
                    break;
                case 75:
                    bVar = aVar.d;
                    bVar.j0 = obtainStyledAttributes.getBoolean(index, bVar.j0);
                    break;
                case 76:
                    cVar = aVar.c;
                    cVar.d = obtainStyledAttributes.getInt(index, cVar.d);
                    break;
                case 77:
                    aVar.d.g0 = obtainStyledAttributes.getString(index);
                    break;
                case 78:
                    dVar = aVar.b;
                    dVar.c = obtainStyledAttributes.getInt(index, dVar.c);
                    break;
                case 79:
                    cVar = aVar.c;
                    cVar.f = obtainStyledAttributes.getFloat(index, cVar.f);
                    break;
                case 80:
                    bVar = aVar.d;
                    bVar.h0 = obtainStyledAttributes.getBoolean(index, bVar.h0);
                    break;
                case 81:
                    bVar = aVar.d;
                    bVar.i0 = obtainStyledAttributes.getBoolean(index, bVar.i0);
                    break;
                case 82:
                    g = c.b.a.a.a.g("unused attribute 0x");
                    g.append(Integer.toHexString(index));
                    g.append(str);
                    g.append(e.get(index));
                    Log.w(str2, g.toString());
                    break;
                default:
                    g = c.b.a.a.a.g("Unknown attribute 0x");
                    g.append(Integer.toHexString(index));
                    g.append(str);
                    g.append(e.get(index));
                    Log.w(str2, g.toString());
                    break;
            }
        }
        obtainStyledAttributes.recycle();
        return aVar;
    }

    public void d(Context context, int i) {
        XmlResourceParser xml = context.getResources().getXml(i);
        try {
            for (int eventType = xml.getEventType(); eventType != 1; eventType = xml.next()) {
                if (eventType == 0) {
                    xml.getName();
                } else if (eventType == 2) {
                    String name = xml.getName();
                    a c = c(context, Xml.asAttributeSet(xml));
                    if (name.equalsIgnoreCase("Guideline")) {
                        c.d.a = true;
                    }
                    this.c.put(Integer.valueOf(c.a), c);
                }
            }
        } catch (XmlPullParserException e) {
            e.printStackTrace();
        } catch (IOException e2) {
            e2.printStackTrace();
        }
    }
}
